export const EDGE_TOOLS = [
  {
    name: "button-remove", // 工具名称
    args: {
      // 工具对应的参数
      x: 10,
      y: 10,
    },
  },
  {
    name: "segments", // 工具名称
    args: {
      // 工具对应的参数
      x: 10,
      y: 10,
    },
  },
  {
    name: "vertices", // 工具名称
    args: {
      // 工具对应的参数
      x: 10,
      y: 10,
    },
  },
  {
    name: "source-arrowhead", // 工具名称
    args: {
      // 工具对应的参数
      x: 10,
      y: 10,
    },
  },
  {
    name: "target-arrowhead", // 工具名称
    args: {
      // 工具对应的参数
      x: 10,
      y: 10,
    },
  },
];

export const NODE_TOOLS = [
  {
    name: "button-remove", // 工具名称
    args: {
      // 工具对应的参数
      x: 10,
      y: 10,
    },
  },
];

const commonAttrs = {
  body: {
    fill: "#fff",
    stroke: "#8f8f8f",
    strokeWidth: 1,
  },
  label: {
    refX: 0.5,
    refY: "100%",
    refY2: 4,
    textAnchor: "middle",
    textVerticalAnchor: "top",
  },
};

export const list1 = [
  // {
  //   shape: "custom-rect",
  //   label: "过程",
  // },
  // {
  //   shape: "custom-rect",
  //   attrs: {
  //     body: {
  //       rx: 6,
  //       ry: 6,
  //     },
  //   },
  //   label: "可选过程",
  // },
  {
    shape: "image",
    x: 290,
    y: 150,
    width: 60,
    height: 40,
    imageUrl: "http://local.vrmaker.vip:38080/LineSvg/%E6%BB%A4%E6%B3%A2.png",
    attrs: commonAttrs,
  },
  {
    shape: "image",
    x: 290,
    y: 150,
    width: 60,
    height: 40,
    imageUrl:
      "http://local.vrmaker.vip:38080/LineSvg/%E8%A1%A5%E5%81%BF%E6%9F%9C1.png",
    attrs: commonAttrs,
  },
  {
    shape: "image",
    x: 290,
    y: 150,
    width: 60,
    height: 40,
    imageUrl: "http://local.vrmaker.vip:38080/LineSvg/%E6%BB%A4%E6%B3%A2.png",
    attrs: commonAttrs,
  },
  {
    shape: "image",
    x: 290,
    y: 150,
    width: 60,
    height: 40,
    imageUrl: "http://local.vrmaker.vip:38080/LineSvg/%E6%BB%A4%E6%B3%A2.png",
    attrs: commonAttrs,
  },
];

export const list2 = [
  {
    label: "Client",
    image:
      "https://gw.alipayobjects.com/zos/bmw-prod/687b6cb9-4b97-42a6-96d0-34b3099133ac.svg",
  },
  {
    label: "Http",
    image:
      "https://gw.alipayobjects.com/zos/bmw-prod/dc1ced06-417d-466f-927b-b4a4d3265791.svg",
  },
  {
    label: "Api",
    image:
      "https://gw.alipayobjects.com/zos/bmw-prod/c55d7ae1-8d20-4585-bd8f-ca23653a4489.svg",
  },
  {
    label: "Sql",
    image:
      "https://gw.alipayobjects.com/zos/bmw-prod/6eb71764-18ed-4149-b868-53ad1542c405.svg",
  },
  {
    label: "Clound",
    image:
      "https://gw.alipayobjects.com/zos/bmw-prod/c36fe7cb-dc24-4854-aeb5-88d8dc36d52e.svg",
  },
  {
    label: "Mq",
    image:
      "https://gw.alipayobjects.com/zos/bmw-prod/2010ac9f-40e7-49d4-8c4a-4fcf2f83033b.svg",
  },
];
